package flyweight;

public class Client {

	public static void main(String[] args) {
		WebSiteFactory factory = new WebSiteFactory();
		WebSite webSite1 = factory.getWebSiteCategory("新闻");
		webSite1.use(new User("tom"));
		webSite1.use(new User("dd"));
		webSite1.use(new User("dt"));
		webSite1.use(new User("ds"));

		System.out.println(factory.getSize());
	}

}
